//
// Created by tan on 22-8-24.
//

#include "GPad.h"

GPad::GPad(int padNo, vector<int> coords, int blockNo, vector<int> originalCoords,
           string action) {
    this->padNo = padNo;
    this->coords = std::move(coords);
    this->blockNo = blockNo;
    this->originalCoords = std::move(originalCoords);
    this->action = std::move(action);
    this->allPoints.insert(this->originalCoords.begin(), this->originalCoords.end());
    this->allPoints.insert(this->coords.begin(), this->coords.end());
    this->allPoints.erase(-1);
}
